<?php

namespace DesignNew\Observer;

require('../vendor/autoload.php');

class ObserverClient
{
    public function __construct()
    {
        $johnDoe = new JobSeeker("John Doe");
        $janeDoe = new JobSeeker("Jane Doe");

        $jobPostings = new \DesignNew\Observer\JobPostings();
        $jobPostings->attach($johnDoe);
        $jobPostings->attach($janeDoe);

        $jobPostings->addJob(new \DesignNew\Observer\JobPost('Software Engineer'));
        echo "success";
    }
}

$client = new ObserverClient();